package net.huashitong.mapper.money;


import net.huashitong.ssydt.money.entity.SsMoneyVipRecord;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SsMoneyVipRecordMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SsMoneyVipRecord record);

    int insertSelective(SsMoneyVipRecord record);

    SsMoneyVipRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsMoneyVipRecord record);

    int updateByPrimaryKey(SsMoneyVipRecord record);

    /**
     * 根据用户id获取并且结束时间倒序的第一个对象
     * @param userId
     * @return
     */
    SsMoneyVipRecord getGmtEndDescByUserId(String userId);

}